using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Portal_Broadcast : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string result = BaseAccess.ExecuteScalar(ConfigManager.ConnectionString,
                "select top 1 DocumentContent from T_Document where CategoryID like 'broadcast%' order by CreateDate desc");
            lbMessage.Text = result; //HttpUtility.HtmlEncode
        }

        Page.ClientScript.RegisterStartupScript(this.GetType(),
            this.ClientID,  "<script>mrinit();</script>");
    }
}
